<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>Catharsis.NET.Commons: Catharsis.Commons.Assertion Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Catharsis.NET.Commons
   &#160;<span id="projectnumber">2.8</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_catharsis_1_1_commons_1_1_assertion.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Properties</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="class_catharsis_1_1_commons_1_1_assertion-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Catharsis.Commons.Assertion Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p> 
 <a href="class_catharsis_1_1_commons_1_1_assertion.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a59d49ff3630e2b4945fc0111a60cc8bb"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_assertion.html#a59d49ff3630e2b4945fc0111a60cc8bb">Default&lt; T &gt;</a> (this T self, string message=null)</td></tr>
<tr class="separator:a59d49ff3630e2b4945fc0111a60cc8bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace8364d3c89fc4d07fe37d30a26b08da"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_assertion.html#ace8364d3c89fc4d07fe37d30a26b08da">Empty</a> (IEnumerable self, string message=null)</td></tr>
<tr class="separator:ace8364d3c89fc4d07fe37d30a26b08da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3ab2043a9ab627ab0bcf11ee08779c8"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_assertion.html#aa3ab2043a9ab627ab0bcf11ee08779c8">Empty&lt; T &gt;</a> (IEnumerable&lt; T &gt; self, string message=null)</td></tr>
<tr class="separator:aa3ab2043a9ab627ab0bcf11ee08779c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a52f50dd0d78b97d0c006db60d1268bb6"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_assertion.html#a52f50dd0d78b97d0c006db60d1268bb6">Equal</a> (object self, object other, string message=null)</td></tr>
<tr class="separator:a52f50dd0d78b97d0c006db60d1268bb6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa8b0578cdbc900985450563b086870f3"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_assertion.html#aa8b0578cdbc900985450563b086870f3">False</a> (bool self, string message=null)</td></tr>
<tr class="separator:aa8b0578cdbc900985450563b086870f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0fc2b3f8b7641c0e366f3a82216a8c35"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_assertion.html#a0fc2b3f8b7641c0e366f3a82216a8c35">NotDefault&lt; T &gt;</a> (T self, string message=null)</td></tr>
<tr class="separator:a0fc2b3f8b7641c0e366f3a82216a8c35"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4bfa1a0d6ea3697e626f3df2d6c2359e"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_assertion.html#a4bfa1a0d6ea3697e626f3df2d6c2359e">NotEmpty</a> (IEnumerable self, string message=null)</td></tr>
<tr class="separator:a4bfa1a0d6ea3697e626f3df2d6c2359e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb8bc840bda34e92b98b7556878f84f0"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_assertion.html#afb8bc840bda34e92b98b7556878f84f0">NotEmpty&lt; T &gt;</a> (IEnumerable&lt; T &gt; self, string message=null)</td></tr>
<tr class="separator:afb8bc840bda34e92b98b7556878f84f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2435510d858a42942aea5aeb64234aba"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_assertion.html#a2435510d858a42942aea5aeb64234aba">NotEqual</a> (object self, object other, string message=null)</td></tr>
<tr class="separator:a2435510d858a42942aea5aeb64234aba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e5822f8cb43e4bf884795c9c061af90"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_assertion.html#a7e5822f8cb43e4bf884795c9c061af90">NotNull</a> (object self, string message=null)</td></tr>
<tr class="separator:a7e5822f8cb43e4bf884795c9c061af90"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac053b5269e965259abc31257df21cdb9"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_assertion.html#ac053b5269e965259abc31257df21cdb9">NotWhitespace</a> (string self, string message=null)</td></tr>
<tr class="separator:ac053b5269e965259abc31257df21cdb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeff5418fa5fdd83940f550c423b189e9"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_assertion.html#aeff5418fa5fdd83940f550c423b189e9">Null</a> (object self, string message=null)</td></tr>
<tr class="separator:aeff5418fa5fdd83940f550c423b189e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b174cf5b556d58114a0801cd549a5a4"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_assertion.html#a5b174cf5b556d58114a0801cd549a5a4">True</a> (bool self, string message=null)</td></tr>
<tr class="separator:a5b174cf5b556d58114a0801cd549a5a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc4d0c9d08a5d45b8547a5b4632ae2fe"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_assertion.html#abc4d0c9d08a5d45b8547a5b4632ae2fe">Whitespace</a> (string self, string message=null)</td></tr>
<tr class="separator:abc4d0c9d08a5d45b8547a5b4632ae2fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Collection of methods to perform assertions on objects.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a59d49ff3630e2b4945fc0111a60cc8bb"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void Catharsis.Commons.Assertion.Default&lt; T &gt; </td>
          <td>(</td>
          <td class="paramtype">this T&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>message</em> = <code>null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Asserts that specified value is a default value for its Type.</p>
<p>If assertion fails, ArgumentException will be thrown, otherwise methods returns normally.</p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">T</td><td>Type of subject value.</td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Value to be evaluated.</td></tr>
    <tr><td class="paramname">message</td><td>Error message to be used if assertion fails.</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentException</td><td>Thrown when assertion fails.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>NotDefault{T}(T, string)</dd></dl>
<div class="typeconstraint">
<dl><dt><b>Type Constraints</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em>T</em></td><td>&#160;:</td><td valign="top"><em>struct</em></td><td>&#160;</td></tr>
</table>
</dl>
</div>

</div>
</div>
<a class="anchor" id="ace8364d3c89fc4d07fe37d30a26b08da"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void Catharsis.Commons.Assertion.Empty </td>
          <td>(</td>
          <td class="paramtype">IEnumerable&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>message</em> = <code>null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Asserts that specified sequence is empty (does not contain any elements).</p>
<p>If assertion fails, ArgumentException will be thrown, otherwise method returns normally.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Sequence to be evaluated.</td></tr>
    <tr><td class="paramname">message</td><td>Error message to be used if assertion fails.</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentException</td><td>Thrown when assertion fails.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>Empty{T}(IEnumerable{T}, string), <a class="el" href="class_catharsis_1_1_commons_1_1_assertion.html#a4bfa1a0d6ea3697e626f3df2d6c2359e">NotEmpty(IEnumerable, string)</a></dd></dl>

</div>
</div>
<a class="anchor" id="aa3ab2043a9ab627ab0bcf11ee08779c8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void <a class="el" href="class_catharsis_1_1_commons_1_1_assertion.html#ace8364d3c89fc4d07fe37d30a26b08da">Catharsis.Commons.Assertion.Empty</a>&lt; T &gt; </td>
          <td>(</td>
          <td class="paramtype">IEnumerable&lt; T &gt;&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>message</em> = <code>null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Asserts that specified sequence is empty (does not contain any elements).</p>
<p>If assertion fails, ArgumentException will be thrown, otherwise method returns normally.</p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">T</td><td>Type of elements in sequence.</td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Sequence to be evaluated.</td></tr>
    <tr><td class="paramname">message</td><td>Error message to be used if assertion fails.</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentException</td><td>Thrown when assertion fails.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_catharsis_1_1_commons_1_1_assertion.html#ace8364d3c89fc4d07fe37d30a26b08da">Empty(IEnumerable, string)</a>, NotEmpty{T}(IEnumerable{T}, string)</dd></dl>

</div>
</div>
<a class="anchor" id="a52f50dd0d78b97d0c006db60d1268bb6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void Catharsis.Commons.Assertion.Equal </td>
          <td>(</td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>other</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>message</em> = <code>null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Asserts that two objects are equal, according to the result of object.Equals(object, object) method's call.</p>
<p>If assertion fails, ArgumentException will be thrown, otherwise method returns normally.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>First object to be compared.</td></tr>
    <tr><td class="paramname">other</td><td>Second object to be compared.</td></tr>
    <tr><td class="paramname">message</td><td>Error message to be used if assertion fails.</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentException</td><td>Thrown when assertion fails.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_catharsis_1_1_commons_1_1_assertion.html#a2435510d858a42942aea5aeb64234aba">NotEqual(object, object, string)</a></dd></dl>

</div>
</div>
<a class="anchor" id="aa8b0578cdbc900985450563b086870f3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void Catharsis.Commons.Assertion.False </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>message</em> = <code>null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Asserts that specified logical expression evaluates to false.</p>
<p>If assertion fails, ArgumentException will be thrown, otherwise method returns normally.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Logical expression to be evaluated.</td></tr>
    <tr><td class="paramname">message</td><td>Error message to be used if assertion fails.</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentException</td><td>Thrown when assertion fails.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_catharsis_1_1_commons_1_1_assertion.html#a5b174cf5b556d58114a0801cd549a5a4">True(bool, string)</a></dd></dl>

</div>
</div>
<a class="anchor" id="a0fc2b3f8b7641c0e366f3a82216a8c35"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void Catharsis.Commons.Assertion.NotDefault&lt; T &gt; </td>
          <td>(</td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>message</em> = <code>null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Asserts that specified value is not a default value for its Type.</p>
<p>If assertion fails, ArgumentException will be thrown, otherwise methods returns normally.</p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">T</td><td>Type of subject value.</td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Value to be evaluated.</td></tr>
    <tr><td class="paramname">message</td><td>Error message to be used if assertion fails.</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentException</td><td>Thrown when assertion fails.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>Default{T}(T, string)</dd></dl>
<div class="typeconstraint">
<dl><dt><b>Type Constraints</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em>T</em></td><td>&#160;:</td><td valign="top"><em>struct</em></td><td>&#160;</td></tr>
</table>
</dl>
</div>

</div>
</div>
<a class="anchor" id="a4bfa1a0d6ea3697e626f3df2d6c2359e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void Catharsis.Commons.Assertion.NotEmpty </td>
          <td>(</td>
          <td class="paramtype">IEnumerable&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>message</em> = <code>null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Asserts that specified sequence is not empty (contains at least one element).</p>
<p>If assertion fails, ArgumentException will be thrown, otherwise method returns normally.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Sequence to be evaluated.</td></tr>
    <tr><td class="paramname">message</td><td>Error message to be used if assertion fails.</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentException</td><td>Thrown when assertion fails.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>NotEmpty{T}(IEnumerable{T}, string), <a class="el" href="class_catharsis_1_1_commons_1_1_assertion.html#ace8364d3c89fc4d07fe37d30a26b08da">Empty(IEnumerable, string)</a></dd></dl>

</div>
</div>
<a class="anchor" id="afb8bc840bda34e92b98b7556878f84f0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void <a class="el" href="class_catharsis_1_1_commons_1_1_assertion.html#a4bfa1a0d6ea3697e626f3df2d6c2359e">Catharsis.Commons.Assertion.NotEmpty</a>&lt; T &gt; </td>
          <td>(</td>
          <td class="paramtype">IEnumerable&lt; T &gt;&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>message</em> = <code>null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Asserts that specified sequence is not empty (contains at least one element).</p>
<p>If assertion fails, ArgumentException will be thrown, otherwise method returns normally.</p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">T</td><td>Type of elements in sequence.</td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Sequence to be evaluated.</td></tr>
    <tr><td class="paramname">message</td><td>Error message to be used if assertion fails.</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentException</td><td>Thrown when assertion fails.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_catharsis_1_1_commons_1_1_assertion.html#a4bfa1a0d6ea3697e626f3df2d6c2359e">NotEmpty(IEnumerable, string)</a>, Empty{T}(IEnumerable{T}, string)</dd></dl>

</div>
</div>
<a class="anchor" id="a2435510d858a42942aea5aeb64234aba"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void Catharsis.Commons.Assertion.NotEqual </td>
          <td>(</td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>other</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>message</em> = <code>null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Asserts that two objects are not equal, according to the result of object.Equals(object, object) method's call.</p>
<p>If assertion fails, ArgumentException will be thrown, otherwise method returns normally.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>First object to be compared.</td></tr>
    <tr><td class="paramname">other</td><td>Second object to be compared.</td></tr>
    <tr><td class="paramname">message</td><td>Error message to be used if assertion fails.</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentException</td><td>Thrown when assertion fails.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_catharsis_1_1_commons_1_1_assertion.html#a52f50dd0d78b97d0c006db60d1268bb6">Equal(object, object, string)</a></dd></dl>

</div>
</div>
<a class="anchor" id="a7e5822f8cb43e4bf884795c9c061af90"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void Catharsis.Commons.Assertion.NotNull </td>
          <td>(</td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>message</em> = <code>null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Asserts that specified value is not <code>null</code>.</p>
<p>If assertion fails, ArgumentException will be thrown, otherwise method returns normally.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Object to be evaluated.</td></tr>
    <tr><td class="paramname">message</td><td>Error message to be used if assertion fails.</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>Thrown when assertion fails.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_catharsis_1_1_commons_1_1_assertion.html#aeff5418fa5fdd83940f550c423b189e9">Null(object, string)</a></dd></dl>

</div>
</div>
<a class="anchor" id="ac053b5269e965259abc31257df21cdb9"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void Catharsis.Commons.Assertion.NotWhitespace </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>message</em> = <code>null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Asserts that specified string is not a <code>null</code> reference, string.Empty or contains only space characters.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>String to be evaluated.</td></tr>
    <tr><td class="paramname">message</td><td>Error message to be used if assertion fails.</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>Thrown when assertion fails (<em>self</em>  is a <code>null</code> reference).</td></tr>
    <tr><td class="paramname">ArgumentException</td><td>Thrown when assertion fails (<em>self</em>  is either string.Empty or contains only space characters).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_catharsis_1_1_commons_1_1_assertion.html#abc4d0c9d08a5d45b8547a5b4632ae2fe">Whitespace(string, string)</a></dd></dl>

</div>
</div>
<a class="anchor" id="aeff5418fa5fdd83940f550c423b189e9"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void Catharsis.Commons.Assertion.Null </td>
          <td>(</td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>message</em> = <code>null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Asserts that specified value is a <code>null</code> reference.</p>
<p>If assertion fails, ArgumentException will be thrown, otherwise method returns normally.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Object to be evaluated.</td></tr>
    <tr><td class="paramname">message</td><td>Error message to be used if assertion fails.</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentException</td><td>Thrown when assertion fails.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_catharsis_1_1_commons_1_1_assertion.html#a7e5822f8cb43e4bf884795c9c061af90">NotNull(object, string)</a></dd></dl>

</div>
</div>
<a class="anchor" id="a5b174cf5b556d58114a0801cd549a5a4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void Catharsis.Commons.Assertion.True </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>message</em> = <code>null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Asserts that specified logical expression evaluates to true.</p>
<p>If assertion fails, ArgumentException will be thrown, otherwise method returns normally.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Logical expression to be evaluated.</td></tr>
    <tr><td class="paramname">message</td><td>Error message to be used if assertion fails.</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentException</td><td>Thrown when assertion fails.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_catharsis_1_1_commons_1_1_assertion.html#aa8b0578cdbc900985450563b086870f3">False(bool, string)</a></dd></dl>

</div>
</div>
<a class="anchor" id="abc4d0c9d08a5d45b8547a5b4632ae2fe"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void Catharsis.Commons.Assertion.Whitespace </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>message</em> = <code>null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Asserts that specified string is either a <code>null</code> reference, string.Empty or contains only space characters.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>String to be evaluated.</td></tr>
    <tr><td class="paramname">message</td><td>Error message to be used if assertion fails.</td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentException</td><td>Thrown when assertion fails.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_catharsis_1_1_commons_1_1_assertion.html#ac053b5269e965259abc31257df21cdb9">NotWhitespace(string, string)</a></dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_catharsis.html">Catharsis</a></li><li class="navelem"><a class="el" href="namespace_catharsis_1_1_commons.html">Commons</a></li><li class="navelem"><a class="el" href="class_catharsis_1_1_commons_1_1_assertion.html">Assertion</a></li>
    <li class="footer">Generated on Wed Aug 6 2014 00:10:36 for Catharsis.NET.Commons by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
  </ul>
</div>
</body>
</html>
